package com.simple.behavior.classandclass.chainofresponsibility;

/**
 * @author simple
 * @version 1.0
 * @date 2019-01-04 17:57
 * @since 1.0
 */
public class Start {
    public static void main(String[] args) {
        MyHandler h1 = new MyHandler("h1");
        MyHandler h2 = new MyHandler("h2");
        MyHandler h3 = new MyHandler("h3");
        h1.setHandler(h2);
        h2.setHandler(h3);

        h1.operator();
    }
}
